<nav id="nav" class="nav-primary hidden-xs nav-vertical">
        <ul class="nav" data-spy="affix" data-offset-top="50">
            <li class="active">
                    
                     <?php echo $this->Html->link( '<i class="fa fa-dashboard fa-lg"></i>
                    <span>Dashboard</span>',array('controller' => 'DemoesLayout', 'action' => 'index'), array('escape' => false) ) ;?>

                 
            </li>
            <li class="dropdown-submenu">
                <?php echo $this->Html->link( '<b class="badge bg-danger pull-right">5</b><i class="fa fa-envelope-o fa-lg"></i>
                    <span>Emails</span>',array('controller' => 'Emails', 'action' => 'index'), array('id'=>'add-emails','escape' => false) ) ;?> 
                <!-- <a href="#"><i class="fa fa-th fa-lg"></i><span>Elements</span></a> -->
                <ul class="dropdown-menu">
                    <li>
                        <?php echo $this->Html->link( '<i class="fa fa-envelope-o"></i>
                    <span> Create News Emails</span>',array('controller' => 'Emails', 'action' => 'add'), array('escape' => false) ) ;?> 
                    <li><?php echo $this->Html->link( '<i class="fa fa-list-ul"></i>
                    <span> List Emails</span>',array('controller' => 'Emails', 'action' => 'index'), array('escape' => false) ) ;?> </li>
                </ul>
            </li>
            <li class="dropdown-submenu"><?php echo $this->Html->link( '<i class="fa fa fa-group"></i>
                    <span> Groups</span>',array('controller' => 'Groups', 'action' => 'index'), array('escape' => false) ) ;?>
                <ul class="dropdown-menu">
                    <li><?php echo $this->Html->link( '<i class="fa fa-list-ul"></i>
                    <span> List Groups</span>',array('controller' => 'Groups', 'action' => 'index'), array('escape' => false) ) ;?></li>
                     <li>
                        
                         <?php echo $this->Html->link( '<i class="fa fa-pencil"></i>
                    <span> Create new Groups</span>',array('controller' => 'Groups', 'action' => 'add'), array('escape' => false) ) ;?>
                    </li>
                </ul>
            </li>
            <li class="dropdown-submenu">
                <?php echo $this->Html->link( '<i class="fa fa-user"></i>
                    <span>Customers</span>',array('controller' => 'Customers', 'action' => 'index'), array('escape' => false) ) ;?> 
                    <ul class="dropdown-menu">
                    <li><?php echo $this->Html->link( '<i class="fa fa-list-ul"></i>
                    <span> List Customers</span>',array('controller' => 'Customers', 'action' => 'index'), array('escape' => false) ) ;?></li>
                     <li><?php echo $this->Html->link( '<i class="fa fa-pencil"></i>
                    <span> New Customer</span>',array('controller' => 'Customers', 'action' => 'add'), array('escape' => false) ) ;?></li>
                </ul>
                <!-- <a href="form.html"><i class="fa fa-edit fa-lg"></i><span>Form</span></a> -->
        </ul>
    </nav>